package com.kly.user.serviceImpl.traffic.forceConnect;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject;
import com.fqgj.common.api.Response;
import com.fqgj.common.utils.CollectionUtils;
import com.fqgj.log.factory.LogFactory;
import com.fqgj.log.interfaces.Log;
import com.google.common.collect.Maps;
import com.google.common.eventbus.AsyncEventBus;
import com.kly.enums.ParameterTypeEnum;
import com.kly.service.MemberService;
import com.kly.user.db.dao.*;
import com.kly.user.db.entity.*;
import com.kly.user.dto.TrafficSourceDto;
import com.kly.user.dto.vo.TrafficSourceReq;
import com.kly.user.enums.AppEnum;
import com.kly.user.enums.LikeEnum;
import com.kly.user.enums.TrafficSourceEnum;
import com.kly.user.enums.UserType;
import com.kly.user.eventbus.ActionEnum;
import com.kly.user.eventbus.Event;
import com.kly.user.service.UserTrafficSourceService;
import com.kly.user.task.UserTaskConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Time;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Service
public abstract class FcBase {

    public static Log logger = LogFactory.getLog(FcBase.class);

    @Autowired
    UserDao userDao;

    @Resource
    MemberService memberService;

    @Resource
    UserChatterMappingDao userChatterMappingDao;

    @Resource
    AsyncEventBus pushEventBus;
    @Resource
    IssueUserDao issueUserDao;

    @Autowired
    CustomersUserDao customersUserDao;


    @Resource
    AsyncEventBus asyncEventBus;


    @Resource
    UserTaskConfig userTaskConfig;

    @Resource
    UserWlmDao userWlmDao;
    @Resource
    UserWlmLogDao userWlmLogDao;

    @Resource
    IssueWlmRecordDao issueWlmRecordDao;

    @Resource
    CustomersDao customersDao;

    @Resource
    UserTrafficSourceService userTrafficSourceService;


    public List<IssueUsersDetailEntity> getFilteredRes(List<IssueUsersDetailEntity>  userEntities) {
        return userEntities;
    }
}
